package com.yoda.mall.mysql.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yoda.mall.api.CompanyAddressApi;
import com.yoda.mall.model.entity.oms.CompanyAddress;
import com.yoda.mall.mysql.mapper.CompanyAddressMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shawn
 * @date 2022年 12月 18日 21:59
 */

@DubboService
public class CompanyAddressApiImpl implements CompanyAddressApi {

    @Resource
    private CompanyAddressMapper companyAddressMapper;

    @Override
    public List<CompanyAddress> getAllCompanyAddress() {
        return companyAddressMapper.selectList(new LambdaQueryWrapper<>());
    }
}
